This function is able to count the occurances of any defined element occuring within a sequence. It returns a list of integers listing occurances in the given order of the element.
(setq lis
(cfunction
(gen-noise-white 12 1.0 .24) '(0 1 2 3)))
=> (2 1 1 2 1 3 0 3 2 2 0 0))
(e-count '(0 1 2 3) lis)
=> (3 3 4 2)
(setq sym
(cfunction
(gen-noise-white 12 1.0 .24) '(a b c d e f g h i j k l)))